package com.xuecheng.content.controller;

import com.sun.org.apache.bcel.internal.generic.RETURN;
import com.xuecheng.api.content.model.dto.TeachplanMediaDTO;
import com.xuecheng.api.content.model.qo.QueryTeachplanMediaModel;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.common.util.SecurityUtil;
import org.springframework.web.bind.annotation.*;
import com.xuecheng.content.service.TeachplanMediaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author itcast
 */
@Slf4j
@RestController
public class TeachplanMediaController {
    @Autowired
    private TeachplanMediaService  teachplanMediaService;

    @GetMapping("/getTeacherMediaCount/{mediaId}")
    public RestResponse<Integer> getTeacherMediaCount(@PathVariable Long mediaId){
        return teachplanMediaService.getTeacherMediaCount(mediaId);
    }
}
